package com.group02.community.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.group02.community.entity.owner.ZyOwner;
import com.group02.community.entity.vo.OwnerVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OwnerMapper extends BaseMapper<ZyOwner> {

    List<ZyOwner> getOwnerByList(@Param("list") List<String> list);

    List<ZyOwner> getAllOwner();

    IPage<ZyOwner> selectOwnerPage(IPage<ZyOwner> page, @Param("ownerVO") OwnerVO ownerVO);

    ZyOwner getOwnerInfo(@Param("phoneNumber") String phoneNumber,@Param("password") String password);

}
